package com.jy.adscm.operation.cg.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.cg.bean.CgPurchasePlan;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.operation.cg.bean.CreateCgPlan;
import com.jy.adscm.operation.cg.bean.QueryCgPuchasePlan;
import com.jy.adscm.security.utils.Token;

import java.util.List;

/**
 * <p>
 * 采购计划 服务类
 * </p>
 *
 * @author zyl
 * @since 2019-07-07
 */
public interface CgPurchasePlanService extends IService<CgPurchasePlan> {

    Boolean createPlan(CreateCgPlan createPlan, Token token) throws AdscmSystemException;


    boolean updateCgPurchasePlan(CgPurchasePlan cgPurchasePlan);

    Page<CgPurchasePlan> selectCgPurchasePlan(Page<CgPurchasePlan> page, QueryCgPuchasePlan queryCgPuchasePlan);

    Boolean approve(Long id);

    Boolean approves( List<Long> ids);
}
